<?php

// +----------------------------------------------------------------------
// | EasyAdmin
// +----------------------------------------------------------------------
// | PHP交流群: 763822524
// +----------------------------------------------------------------------
// | 开源协议  https://mit-license.org 
// +----------------------------------------------------------------------
// | github开源项目：https://github.com/zhongshaofa/EasyAdmin
// +----------------------------------------------------------------------

namespace app\model\api\duty;


use laytp\BaseModel;
use think\model\concern\SoftDelete;

class DutyRecord extends BaseModel
{

    use SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $connection ="xm_game";

    public function author()
    {
        return $this->belongsTo(DutyAuthor::class, 'author_id')
            ->bind(['author_name', 'author_head','icon','author_type' => 'role_type']);
    }

}